home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils-2.0 / fu2-diff.zoo / lib / Makefile < prev   
Encoding:
Makefile  |  1991-06-12  |  2.5 KB  |  87 lines

  1. # Makefile for library files used by GNU fileutils.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1986, 1988, 1989, 1990 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL  = /bin/sh
  20. YACC   = bison -y
  21. CC     = cgcc
  22. AR     = car
  23. RANLIB = car s   
  24. CFLAGS = -DSTPCPY_MISSING -DSTRDUP_MISSING -DMKFIFO_MISSING\
  25.      -DFTRUNCATE_MISSING -DFCHMOD_MISSING -DFTIME_MISSING\
  26.      -I. -I../lib -O -fstrength-reduce
  27.  
  28. SOURCES = argmatch.c backupfile.c basename.c dirname.c eaccess.c \
  29. error.c fileblocks.c filemode.c getopt.c getopt1.c \
  30. getversion.c globmat.c idcache.c isdir.c makepath.c mkrmdir.c mktime.c \
  31. modechange.c regex.c rename.c savedir.c stpcpy.c \
  32. strdup.c stripslash.c xmalloc.c xstrdup.c xwrite.c yesno.c \
  33. getdate.y posixtime.y
  34.  
  35. OBJECTS = argmatch.o backupfile.o basename.o dirname.o eaccess.o \
  36. error.o fileblocks.o filemode.o getopt.o getopt1.o \
  37. getversion.o globmat.o idcache.o isdir.o makepath.o mkrmdir.o mktime.o \
  38. modechange.o regex.o rename.o savedir.o stpcpy.o \
  39. strdup.o stripslash.o xmalloc.o xstrdup.o xwrite.o yesno.o \
  40. getdate.o posixtime.o
  41.  
  42. DISTFILES = Makefile backupfile.h getopt.h modechange.h regex.h $(SOURCES)
  43.  
  44. all: libfu.olb
  45. .PHONY: all
  46.  
  47. install: all
  48. .PHONY: install
  49.  
  50. tags: $(SOURCES)
  51.     ctags $(SOURCES)
  52.  
  53. TAGS: $(SOURCES)
  54.     etags $(SOURCES)
  55.  
  56. clean:
  57.     rm -f *.a *.o tags TAGS getdate.c posixtime.c tposixtime.c
  58. .PHONY: clean
  59.  
  60. dist:
  61.     ln $(DISTFILES) ../$(DISTDIR)/lib
  62. .PHONY: dist
  63.  
  64. libfu.olb: $(OBJECTS)
  65.     $(AR) cr $@ $(OBJECTS)
  66.     -$(RANLIB) $@
  67.  
  68. getdate.c: getdate.y
  69.     @echo expect 8 shift/reduce conflicts
  70.     $(YACC) getdate.y
  71.     mv y.tab.c getdate.c
  72.  
  73. # Make the rename atomic, in case sed is interrupted and later rerun.
  74. posixtime.c: posixtime.y
  75.     $(YACC) posixtime.y
  76.     sed -e 's/yy/zz/g' y.tab.c > tposixtime.c
  77.     mv tposixtime.c posixtime.c
  78.     rm y.tab.c
  79.  
  80. backupfile.c getversion.c: backupfile.h
  81.  
  82. getopt1.c: getopt.h
  83.  
  84. modechange.o: modechange.h
  85.  
  86. regex.c: regex.h
  87.